//
// Created by moonlight on 25-11-9.
//

#ifndef SEQLIST_H
#define SEQLIST_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 10 //写死,静态顺序表
typedef int SQDataType;

typedef struct SeqList {
    // SQDataType a[N];
    SQDataType* a;
    int capacity; //有效数据个数
    int size;
} SeqList ;

void SeqListInit(SeqList* s1);
void SeqListPushBack(SeqList* s1, SQDataType x);
void SeqListPushFont(SeqList* s1, SQDataType x);
void SeqListPopBack(SeqList* s1);
void SeqListPopFont(SeqList* s1);
void PrintList(SeqList* s1);
//扩容
void SeqListCheckCapacity(SeqList* s1);
#endif //SEQLIST_H
